package ai.engine;

import ai.Trackable;
import engine.data.Unit;
import util.ArrayList;
import util.List;

public abstract class PreAllocatedTask extends Task {

	private List preAllocatedTaskDoers;

	public PreAllocatedTask(short id, short taskType, Class taskDoerType, String name, String details, short priority, Trackable target, byte resourcesMin, byte resourcesMax) {
		super(id, taskType, taskDoerType, name, details, priority, target, resourcesMin, resourcesMax);
		// TODO Auto-generated constructor stub
		this.preAllocatedTaskDoers = new ArrayList();
	}

	public boolean isTaskSuitable(Unit unit) {
		return this.preAllocatedTaskDoers.contains(unit);
	}

}
